package com.wx_shop.admin.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperConfExpressTraces implements Serializable {
    private Integer id;

    /**
     * 快递公司代码
     */
    private String shipperCode;

    /**
     * 快递单号
     */
    private String logisticCode;

    /**
     * 状态:2-在途中,3-签收,4-问题件
     */
    private Integer state;

    /**
     * 物流信息 json
     */
    private String traces;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 快递公司代码
     */
    public String getShipperCode() {
        return shipperCode;
    }

    /**
     * 快递公司代码
     */
    public void setShipperCode(String shipperCode) {
        this.shipperCode = shipperCode;
    }

    /**
     * 快递单号
     */
    public String getLogisticCode() {
        return logisticCode;
    }

    /**
     * 快递单号
     */
    public void setLogisticCode(String logisticCode) {
        this.logisticCode = logisticCode;
    }

    /**
     * 状态:2-在途中,3-签收,4-问题件
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态:2-在途中,3-签收,4-问题件
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 物流信息 json
     */
    public String getTraces() {
        return traces;
    }

    /**
     * 物流信息 json
     */
    public void setTraces(String traces) {
        this.traces = traces;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", shipperCode=").append(shipperCode);
        sb.append(", logisticCode=").append(logisticCode);
        sb.append(", state=").append(state);
        sb.append(", traces=").append(traces);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperConfExpressTraces other = (SuperConfExpressTraces) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getShipperCode() == null ? other.getShipperCode() == null : this.getShipperCode().equals(other.getShipperCode()))
            && (this.getLogisticCode() == null ? other.getLogisticCode() == null : this.getLogisticCode().equals(other.getLogisticCode()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getTraces() == null ? other.getTraces() == null : this.getTraces().equals(other.getTraces()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getShipperCode() == null) ? 0 : getShipperCode().hashCode());
        result = prime * result + ((getLogisticCode() == null) ? 0 : getLogisticCode().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getTraces() == null) ? 0 : getTraces().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}